package com.xbongbong.pro.template.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.paas.toolbox.wrap.QueryIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/1/29 15:14
 * @since v1.0
 */
@Setter
@Getter
@ToString
public class TemplateChangeDTO extends BaseDTO {
    private static final long serialVersionUID = -8012166768405523721L;

    /**
     * 是否启用
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Boolean enable;

    /**
     * saas标记
     */
    private Integer saasMark;

    /**
     * 业务类型
     */
    private Integer businessType;

    /**
     * 应用id
     */
    @NotNull(message = "{dto.msg.templateChange.appId.NotNull}")
    private Integer appId;

    private Integer menuId;

    /**
     * 表单id
     */
    @Getter(onMethod_ = {@QueryIgnore})
    private Long formId;
}
